import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.EventQueue;
import java.awt.Frame;

import javax.swing.JFrame;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JMenuBar;
import javax.swing.JMenu;

import java.awt.Button;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Panel;


public class Main extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Main frame = new Main();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public CardLayout card =new CardLayout();
	public Main() {
		setLayout(card);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 680, 500);
		
		JMenuBar menuBar = new JMenuBar();
		setJMenuBar(menuBar);
		
		JMenu mnTyChn = new JMenu("T\u00F9y ch\u1ECDn");
		menuBar.add(mnTyChn);
		JMenuItem a = new JMenuItem("A");
		a.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				System.out.println("adasnd");
//				contentPane.add(new QLNV(),"Quản Lí nhân viên");
				card.show(contentPane, "a");
			}
		});
		mnTyChn.add(a);
		
		JMenu mnQunLNhn = new JMenu("Qu\u1EA3n L\u00ED Nh\u00E2n vi\u00EAn");
		
		a = new JMenuItem("V");
		a.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
//				contentPane.add(new QLNV(),"Quản Lí nhân viên");
				card.show(contentPane, "v");
			}
		});
		menuBar.add(mnQunLNhn);
		mnQunLNhn.add(a);
		
		JMenu mnQunLSn = new JMenu("Qu\u1EA3n l\u00ED s\u1EA3n ph\u1EA9m");
		menuBar.add(mnQunLSn);
		
		JMenu mnQunLKhch = new JMenu("Qu\u1EA3n l\u00ED kh\u00E1ch h\u00E0ng");
		menuBar.add(mnQunLKhch);
		
		JMenu mnQunLKho = new JMenu("Qu\u1EA3n l\u00ED kho");
		menuBar.add(mnQunLKho);
		
		JMenu mnThngK = new JMenu("Th\u1ED1ng k\u00EA");
		menuBar.add(mnThngK);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
//		Button button = new Button("Th\u1ED1ng k\u00EA doanh thu");
//		button.setFont(new Font("Tahoma", Font.PLAIN, 11));
//		button.setBounds(122, 84, 117, 54);
//		contentPane.add(button);
//		
//		Button button_1 = new Button("T\u00EDnh l\u01B0\u01A1ng nh\u00E2n vien");
//		button_1.setFont(new Font("Tahoma", Font.PLAIN, 11));
//		button_1.setBounds(276, 84, 117, 54);
//		contentPane.add(button_1);
//		
//		Button button_2 = new Button("\u0110\u01A1n \u0111\u1EB7t h\u00E0ng");
//		button_2.setFont(new Font("Tahoma", Font.PLAIN, 11));
//		button_2.setBounds(122, 181, 117, 54);
//		contentPane.add(button_2);
//		
		contentPane.setLayout(card);
		
		Panel panel = new Panel();
		panel.setBounds(0, 0, 531, 291);
		contentPane.add(panel,"a");
		
		
		Button button_3 = new Button("Xu\u1EA5t h\u00F3a \u0111\u01A1n");
		button_3.setFont(new Font("Tahoma", Font.PLAIN, 11));
		button_3.setBounds(276, 181, 117, 54);
		panel.add(button_3);
		
		contentPane.add(new Vinh(),"v");
	}
}
